package Saas_Exercises;

import java.util.Scanner;

public class Assignment01_Triangle {

	private Scanner sc;

	void findTriangleType() {

		sc = new Scanner(System.in);
		System.out.println("please enter the string input");
		double a = sc.nextDouble();
		double b = sc.nextDouble();
		double c = sc.nextDouble();

		if (a < (b + c) && b < (a + c) && c < (b + a)) {

			if ((a == b) && (b == c)) {
				System.out.println("equilateral");
			} else if (((a == b) && (a != c)) || ((b == c) && (a != c))
					|| ((a == c) && (b != c))) {
				System.out.println("isosceles");
			} else if ((((a * a) + 0.000001 == b * b + c * c)
					|| ((a * a) - 0.000001 == b * b + c * c) || (a * a == b * b
					+ c * c))
					|| (((b * b) + 0.000001 == c * c + a * a)
							|| ((b * b) - 0.000001 == c * c + a * a) || (b * b == c
							* c + a * a))
					|| (((c * c) + 0.000001 == b * b + a * a)
							|| ((c * c) - 0.000001 == b * b + a * a) || (c * c == b
							* b + a * a))) {
				System.out.println("right-angled");
			} else {
				System.out.println("notspecial");
			}

		} else {
			System.out.println("invalid");
		}
	}

	public static void main(String[] args) {
		Assignment01_Triangle a1 = new Assignment01_Triangle();
		a1.findTriangleType();

	}

}


//Input:
//3.0 3.0 8.0
//Output:
//invalid
//
//
//Input:
//4.0 5.0 3.0
//Output:
//right-angled  
//
//
//Input:
//5.0 7.0 7.0
//Output:
//isosceles
//
//
//Input:
//5.0 5.0 5.0
//Output:
//equilateral
//
//
//Input:
//4.0 5.0 3.1 
//Output:
//notspecial 


